from tkinter import *
root = Tk()
def prt():
  print("hello")
def func1(*args,**kwargs):
  print(*args,**kwargs)
hello_button = Button(root,text="hello",command=prt)
hello_button.pack()
args_button=Button(root,text="获知是否button事件默认有参数",command=func1)
args_button.pack()
btn1=Button(root,text="传输参数",command=lambda: func1("running"))
btn1.pack()
root.mainloop()